<template>
	<view>
		<page-head :title="'结果'" :headtype="2"></page-head>
		<image class="bg" :src="apifun.serveimg+'paysuccess.png'" mode=""></image>
		<view class="duration">
			<text class="mainColor" style="font-size:100rpx;">{{ score }}</text>
			<text style="color:#333333;font-size:28rpx;">小时</text>
		</view>
		<view class="sutitle">您适合购买的陪驾时长</view>
		<view class="subtn marginAuto">
			<view class="subtneach marginAuto mainBg baiColor" @click="naviagte()">立即去购买</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				apifun:this.apifun,
				score:''
			};
		},
		onLoad(option) {
			this.score = option.score
		},
		methods: {
			naviagte(){
				uni.switchTab({
					url:'/pages/tabbar/accompany'
				})
			}
		},
	};
</script>

<style scoped lang="scss">
	.bg{
		position: fixed;
		top: 0;
		left: 0;
		z-index:0;
		width: 100vw;
		height: 100vh;
	}
	.duration{
		position: relative;
		z-index: 10;
		text-align: center;
		padding-top: 200rpx;
	}
	.sutitle{
		position: relative;
		z-index: 10;
		color: #222222;
		font-size: 40rpx;
		text-align: center;
		font-weight: 600;
	}
	.sudoc{
		position: relative;
		z-index: 10;
		font-size: 24rpx;
		color: #666666;
		text-align: center;
		padding: 40rpx 0;
	}
	.subtn{
		position: relative;
		z-index: 10;
		width:70%;
		margin-top:40rpx;
		justify-content: space-between;
		.subtneach{
			width: 280rpx;
			height: 80rpx;
			line-height: 80rpx;
			font-size: 30rpx;
			text-align: center;
			border-radius: 100rpx;
			border: 1px solid #1686F8;
		}
	}
	
</style>